#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QImage>
#include <QString>
#include <QFutureWatcher>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
    void paintEvent(QPaintEvent *e);

protected slots:
    void onLoad();
    void onFinished();

private:
    Ui::MainWindow *ui;
    QFutureWatcher<QImage> m_watcher;
    QImage m_image;
};

#endif // MAINWINDOW_H
